﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 枸杞VBE插件
{
    [ComVisible(true)]
    [Guid("EAA4976A-45C3-4BC5-BC0B-E474F4C3C83F")]
    public interface ComClass1Interface
    {
        void msg();
    }

    [ComVisible(true)]
    [Guid("7BD20046-DF8C-44A6-8F6B-687FAA26FA71")]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    public interface ComClass1Events
    {
    }

    [ComVisible(true)]
    [Guid("F38F678D-94FC-4F59-8E94-398F6E6C2FC8")]
    [ClassInterface(ClassInterfaceType.None)]
    [ComSourceInterfaces(typeof(ComClass1Events))]
    public class ComObject : ComClass1Interface
    {
        public void msg() => MessageBox.Show("Test");
    }
}